#!/usr/bin/python

__author__ = 'felixdu'

from orm import Model, StringField, IntegerField

class User(Model):
    __table__ = 'users'

    id = IntegerField(primary_key=True)
    name = StringField()

#def main():
print("########################")
user = User(id=123, name='Michael')
user.save()
users = User.findAll()
print(users)
#    user = yield from User.find('123')
#    yield from user.save()

#print("########################")
#if __name__ == '__main__':
#    main()
